package org.votes.service.impl;

import java.util.List;

import javax.persistence.Entity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.votes.bean.Manager;
import org.votes.dao.ManagerDao;
import org.votes.service.ManagerService;

@Entity
@Service("managerService")
public class ManagerServiceImpl implements ManagerService {
	
	@Autowired
	private ManagerDao managerDao;

	@Override
	public boolean find(Manager manager) {
		return managerDao.find(manager);
	}

	@Override
	public void save(Manager manager) {
		managerDao.save(manager);
	}

	@Override
	public List<Manager> findAll() {
		return managerDao.findAll();
	}

}
